package cn.joybreeze.model;

import com.baomidou.mybatisplus.annotation.TableName;
import cn.joybreeze.model.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author kjwaa
 * @since 2021-09-15
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("tb_answer")
@ApiModel(value="AnswerDO对象", description="")
public class AnswerDO extends BaseModel {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "问卷id")
    private Integer questionnaireId;

    @ApiModelProperty(value = "问题id")
    private Integer questionId;

    @ApiModelProperty(value = "类型 1 单选 2 多选")
    private Integer type;

    @ApiModelProperty(value = "答案")
    private String result;

    @ApiModelProperty(value = "作答人信息，可以为空匿名，可以为信息，也可以为账号")
    private String info;

    @ApiModelProperty(value = "答案计数")
    private Integer cnumber;


}
